#!/bin/bash
valgrind --tool=cachegrind --log-file=cachegrind.res  --fullpath-after=~/data/sh_path_service/src/c++/ \
--branch-sim=yes --cachegrind-out-file=cachegrind.out \
./../../../build/debug-O2/server/server 10001 ./../../../resources/graph.bin

#(cat ./cachegrind.res \
#& cg_annotate --auto=no --sort=Ir,DLmr,DLmw,Bcm,Bim --show=Ir,DLmr,DLmw,Bcm,Bim cachegrind.out \
#)| less
cat ./cachegrind.res
kcachegrind cachegrind.out
#ILmr
